<?php 
	$this->pageTitle=Yii::app()->name . ' - Signup';
	$LabelHtmlOption = array('style'=>'margin-top:0px;');
	$TextFieldHtmlOption = array('style'=>'font-size:16pt;');
	$SelectFieldHtmlOption = array('style'=>'font-size:14pt;width:277px');
	CHtml::$afterRequiredLabel = '';
	CHtml::$beforeRequiredLabel = '* ';
?>

<div style='position:relative;margin:80px auto 20px auto;width:600px;padding:30px 50px;border:1px solid #DDD;border-radius:15px;background-color:#FFF;'>
	<div style='position:absolute;top:-20px;right:30px;font-size:0.8em;'>
		<?php echo CHtml::link('Already has an account? Login here','site/login/') ?>
	</div>
	<div style='height:10px'></div>
<h2><?php echo CHtml::encode($this->PageTitle); ?></h2>
<div class='describe'>Antioch Worship Team Registration</div>
<div style='height:10px'></div>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'signup-form',
	'enableClientValidation'=>true,
	'htmlOptions'=>array('enctype' => 'multipart/form-data'),
	'clientOptions'=>array(
		'enctype'=>'multipart/form-data',
		'validateOnSubmit'=>true,
	),
));
?>
	<table class="form2c">
		<tr >
			<td >
				<?php echo $form->labelEx($model,'email',$LabelHtmlOption); ?>
			</td>
			<td >
				<?php echo $form->textField($model,'email',$TextFieldHtmlOption); ?>
				<?php echo $form->error($model,'email'); ?>
			</td>
		</tr>
		<tr >
			<td >
				<?php echo $form->labelEx($model,'pwd',$LabelHtmlOption); ?>
			</td>
			<td >
				<?php echo $form->passwordField($model,'pwd',$TextFieldHtmlOption); ?>
				<?php echo $form->error($model,'pwd'); ?>
			</td>
		</tr>
		<tr >
			<td >
				<?php echo $form->labelEx($model,'pwd_confirm',$LabelHtmlOption); ?>
			</td>
			<td >
				<?php echo $form->passwordField($model,'pwd_confirm',$TextFieldHtmlOption); ?>
				<?php echo $form->error($model,'pwd_confirm'); ?>
			</td>
		</tr>
		<tr >
			<td >
				<?php echo $form->labelEx($model,'name',$LabelHtmlOption); ?>
			</td>
			<td >
				<?php echo $form->textField($model,'name',$TextFieldHtmlOption); ?>
				<?php echo $form->error($model,'name'); ?>
			</td>
		</tr>
		<tr >
			<td >
				<?php echo $form->labelEx($model,'verifyCode',$LabelHtmlOption); ?>
			</td>
			<td >
				<?php $this->widget('CCaptcha'); ?>
				<?php echo $form->textField($model,'verifyCode',$TextFieldHtmlOption); ?>
				<?php echo $form->error($model,'verifyCode'); ?>
			</td>
		</tr>
		<tr >
			<td >
				
			</td>
			<td >
				<div class='clear' style='height:40px;'></div>
				<?php if (false): ?>
					<?php echo $form->checkbox($model,'agree') ?>
					<label for='User_agree' style='display:inline;font-size:0.8em;'>I have read and agree with the <?php echo CHtml::link('Terms and Conditions','terms-and-conditions'); ?></label>
					<?php echo $form->error($model,'agree') ?>
					<div class='clear'></div>

				<?php endif ?>
				<?php echo CHtml::tag('button',array('class'=>'bt3','style'=>'margin-top:20px;'),'Signup'); ?>
			</td>
		</tr>
	</table>


<?php $this->endWidget(); ?>
</div><!-- form -->
</div>

<style type="text/css" media="screen">
	#yw0_button{font-size:0.8em;display:block;font-style:italic;}
	table.form2c tr td{padding:2px;}
	table.form2c tr td:first-child{width:250px;text-align:right;padding-right:20px;vertical-align:top;padding-top:10px;}
</style>

